import requests
from bs4 import BeautifulSoup


# 发送HTTP请求
url = 'https://example.com'
response = requests.get(url)

# 解析网页内容
soup = BeautifulSoup(response.text, 'html.parser')

# 提取数据
titles = soup.find_all('h1')
for title in titles:
    print(title.text, 1111)
